﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="advertisement_list.aspx.cs"
    Inherits="TRPOP.CMS.Web.Admin.advertisement_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>广告列表-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
    <script src="../js/utils.js" type="text/javascript"></script>
    <script src="../js/advertisement_list.js" type="text/javascript"></script>
</head>
<body>
    <form id="Form2" runat="server">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：广告管理 ->
                <%=m_title %>
            </td>
        </tr>
    </table>
    <table class="table_search" cellpadding="0" cellspacing="2" width="100%" border="0">
        <tr>
            <td height="20" nowrap="nowrap" width="50">
                广告名称
            </td>
            <td nowrap="nowrap" width="150">
                <cms:TextBox runat="server" ID="txtAdNaneLike" Width="100" />
            </td>
            <td>
                <cms:Button CssClass="button_style" runat="server" Text=" 搜 索 " ID="btSearch" OnClick="btSearch_Click" />
            </td>
        </tr>
    </table>
    <table class="table_list">
        <tbody>
            <tr align="center">
                <th>
                    <strong>广告ID</strong>
                </th>
                <th class="rptlistTitle" width="25%">
                    <strong>名称</strong>
                </th>
                <th>
                    <strong>点击次数</strong>
                </th>
                <th>
                    <strong>引用</strong>
                </th>
                <th>
                    <strong>状态</strong>
                </th>
                <th>
                    <strong>操作</strong>
                </th>
            </tr>
            <cms:Repeater ID="rptList" runat="server">
                <ItemTemplate>
                    <tr class="tr_listitem" onmouseout="this.className='tr_mouseout'" onmouseover="this.className='tr_mouseover'">
                        <td width="35">
                            <%# Eval("AdID")%>
                        </td>
                        <td class="align_c" align="center">
                            <a onclick="javascript:view_ads(<%# Eval("AdID")%>);" href="javascript:void(0);">
                                <%# Eval("Name")%></a>
                        </td>
                        <td class="align_c">
                            <%# Eval("Hits")%>
                        </td>
                        <td class="align_l">
                            <textarea readonly="readonly" rows="1" id="ref_<%# Eval("AdID")%>" onclick="this.select();"
                                style="width: 100%;"> <%#BindRefCode(Eval("AdID"),Eval("PageName"),Eval("ShowModel"))%></textarea>
                        </td>
                        <td class="align_c">
                            <%# Convert.ToBoolean(Eval("IsValid")) ? "有效" : "<span class=\"FontWarn\">无效</span>"%><%--<br />
                         到期时间：<%# Eval("MaturityTime")%>--%>
                        </td>
                        <td class="align_c">
                            <a href="advertisement_save.aspx?id=<%# Eval("AdID")%>">编辑</a>
                            <cms:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClick="lbtnDelete_Click"
                                CommandArgument='<%#Eval("AdID") %>' OnClientClick="return confirm('你确定要删除吗？');"></cms:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </cms:Repeater>
        </tbody>
    </table>
    <table class="table_operator">
        <tr class="tr_pager">
            <td colspan="4">
                <cms:PagerGet ID="Pager" runat="server" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
